#pragma once

namespace cftf::mysql
{
    class QueryRsp;
}

#pragma pack(1)

struct ServerPktHeader
{
    unsigned short size;
    unsigned short cmd;
};

struct ClientPktHeader
{
    unsigned short size;
    unsigned int cmd;
};

#pragma pack()

#ifdef _WIN32

#  include <float.h>

#  define I32FMT "%08I32X"
#  define I64FMT "%016I64X"
#
#  define vsnprintf _vsnprintf
#  define finite(X) _finite(X)
#endif